﻿using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;

namespace FAfx.Selenium.Pages
{
    internal class GooglePageObject : IPageObject
    {
        IWebDriver _driver = null;
        public IWebDriver Driver { get { return _driver; } }
        public string Url { get { return "http://www.google.com/"; } }



        private GooglePageObject() { }

        internal GooglePageObject(IWebDriver driver)
        {
            _driver = driver;
        }

        

        public string Title
        {
            get { return _driver.Title; }
        }

        public IWebElement TxtQuery
        {
            get { return _driver.FindElement(By.Name("q")); }
        }

        

        
    }
}
